#include "FourPointsPrimitive.h"
#include "Atoms.h"

FourPointsPrimitive* FourPointsPrimitive::__ = 0;

FourPointsPrimitive* FourPointsPrimitive::_()
{
	return __ ? __ : __ = new FourPointsPrimitive();
}

FourPointsPrimitive::FourPointsPrimitive() : Primitive()
{
	std::vector< LCVertexTexture > vec;

	vec.push_back( LCVertexTexture( -1.0f, -1.0f, 0.0f, 0.0f, 0.0f ) );
	vec.push_back( LCVertexTexture(  1.0f, -1.0f, 0.0f, 1.0f, 0.0f ) );
	vec.push_back( LCVertexTexture( -1.0f,  1.0f, 0.0f, 0.0f, 1.0f ) );
	vec.push_back( LCVertexTexture(  1.0f,  1.0f, 0.0f, 1.0f, 1.0f ) );

	setBuffer( vec );
}

FourPointsPrimitive::~FourPointsPrimitive()
{

}
